//package com.fitns.user.mapper;
//
//import static com.fitns.user.mapper.TbFacilityDataDynamicSqlSupport.*;
//import static org.mybatis.dynamic.sql.SqlBuilder.*;
//
//import com.fitns.user.model.baseConfig.TbFacilityType
//import java.util.List;
//import javax.annotation.Generated;
//import org.apache.ibatis.annotations.DeleteProvider;
//import org.apache.ibatis.annotations.InsertProvider;
//import org.apache.ibatis.annotations.Mapper;
//import org.apache.ibatis.annotations.Result;
//import org.apache.ibatis.annotations.ResultMap;
//import org.apache.ibatis.annotations.Results;
//import org.apache.ibatis.annotations.SelectKey;
//import org.apache.ibatis.annotations.SelectProvider;
//import org.apache.ibatis.annotations.UpdateProvider;
//import org.apache.ibatis.type.JdbcType;
//import org.mybatis.dynamic.sql.SqlBuilder;
//import org.mybatis.dynamic.sql.delete.DeleteDSL;
//import org.mybatis.dynamic.sql.delete.MyBatis3DeleteModelAdapter;
//import org.mybatis.dynamic.sql.delete.render.DeleteStatementProvider;
//import org.mybatis.dynamic.sql.insert.render.InsertStatementProvider;
//import org.mybatis.dynamic.sql.render.RenderingStrategy;
//import org.mybatis.dynamic.sql.select.MyBatis3SelectModelAdapter;
//import org.mybatis.dynamic.sql.select.QueryExpressionDSL;
//import org.mybatis.dynamic.sql.select.SelectDSL;
//import org.mybatis.dynamic.sql.select.render.SelectStatementProvider;
//import org.mybatis.dynamic.sql.update.MyBatis3UpdateModelAdapter;
//import org.mybatis.dynamic.sql.update.UpdateDSL;
//import org.mybatis.dynamic.sql.update.render.UpdateStatementProvider;
//import org.mybatis.dynamic.sql.util.SqlProviderAdapter;
//
//@Mapper
//public interface TbFacilityDataMapper {
//    @Generated("org.mybatis.generator.api.MyBatisGenerator")
//    @SelectProvider(type=SqlProviderAdapter.class, method="select")
//    long count(SelectStatementProvider selectStatement);
//
//    @Generated("org.mybatis.generator.api.MyBatisGenerator")
//    @DeleteProvider(type=SqlProviderAdapter.class, method="delete")
//    int delete(DeleteStatementProvider deleteStatement);
//
//    @Generated("org.mybatis.generator.api.MyBatisGenerator")
//    @InsertProvider(type=SqlProviderAdapter.class, method="insert")
//    @SelectKey(statement="SELECT LAST_INSERT_ID()", keyProperty="record.id", before=false, resultType=Long.class)
//    int insert(InsertStatementProvider<TbFacilityData> insertStatement);
//
//    @Generated("org.mybatis.generator.api.MyBatisGenerator")
//    @SelectProvider(type=SqlProviderAdapter.class, method="select")
//    @ResultMap("TbFacilityDataResult")
//    TbFacilityData selectOne(SelectStatementProvider selectStatement);
//
//    @Generated("org.mybatis.generator.api.MyBatisGenerator")
//    @SelectProvider(type=SqlProviderAdapter.class, method="select")
//    @Results(id="TbFacilityDataResult", value = {
//        @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
//        @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR),
//        @Result(column="organ_id", property="organId", jdbcType=JdbcType.BIGINT),
//        @Result(column="address", property="address", jdbcType=JdbcType.VARCHAR),
//        @Result(column="status", property="status", jdbcType=JdbcType.INTEGER),
//        @Result(column="acreage", property="acreage", jdbcType=JdbcType.REAL),
//        @Result(column="population", property="population", jdbcType=JdbcType.INTEGER),
//        @Result(column="counter", property="counter", jdbcType=JdbcType.VARCHAR),
//        @Result(column="liabler", property="liabler", jdbcType=JdbcType.VARCHAR),
//        @Result(column="phone", property="phone", jdbcType=JdbcType.VARCHAR),
//        @Result(column="terminal", property="terminal", jdbcType=JdbcType.VARCHAR),
//        @Result(column="rfid", property="rfid", jdbcType=JdbcType.VARCHAR),
//        @Result(column="descs", property="descs", jdbcType=JdbcType.VARCHAR),
//        @Result(column="begin_time", property="beginTime", jdbcType=JdbcType.TIMESTAMP),
//        @Result(column="facility_type", property="facilityType", jdbcType=JdbcType.VARCHAR),
//        @Result(column="image", property="image", jdbcType=JdbcType.VARCHAR),
//        @Result(column="create_id", property="createId", jdbcType=JdbcType.BIGINT),
//        @Result(column="modify_id", property="modifyId", jdbcType=JdbcType.BIGINT),
//        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
//        @Result(column="modify_time", property="modifyTime", jdbcType=JdbcType.TIMESTAMP)
//    })
//    List<TbFacilityData> selectMany(SelectStatementProvider selectStatement);
//
//    @Generated("org.mybatis.generator.api.MyBatisGenerator")
//    @UpdateProvider(type=SqlProviderAdapter.class, method="update")
//    int update(UpdateStatementProvider updateStatement);
//
//    @Generated("org.mybatis.generator.api.MyBatisGenerator")
//    default QueryExpressionDSL<MyBatis3SelectModelAdapter<Long>> countByExample() {
//        return SelectDSL.selectWithMapper(this::count, SqlBuilder.count())
//                .from(tbFacilityData);
//    }
//
//    @Generated("org.mybatis.generator.api.MyBatisGenerator")
//    default DeleteDSL<MyBatis3DeleteModelAdapter<Integer>> deleteByExample() {
//        return DeleteDSL.deleteFromWithMapper(this::delete, tbFacilityData);
//    }
//
//    @Generated("org.mybatis.generator.api.MyBatisGenerator")
//    default int deleteByPrimaryKey(Long id_) {
//        return DeleteDSL.deleteFromWithMapper(this::delete, tbFacilityData)
//                .where(id, isEqualTo(id_))
//                .build()
//                .execute();
//    }
//
//    @Generated("org.mybatis.generator.api.MyBatisGenerator")
//    default int insert(TbFacilityData record) {
//        return insert(SqlBuilder.insert(record)
//                .into(tbFacilityData)
//                .map(name).toProperty("name")
//                .map(organId).toProperty("organId")
//                .map(address).toProperty("address")
//                .map(status).toProperty("status")
//                .map(acreage).toProperty("acreage")
//                .map(population).toProperty("population")
//                .map(counter).toProperty("counter")
//                .map(liabler).toProperty("liabler")
//                .map(phone).toProperty("phone")
//                .map(terminal).toProperty("terminal")
//                .map(rfid).toProperty("rfid")
//                .map(descs).toProperty("descs")
//                .map(beginTime).toProperty("beginTime")
//                .map(facilityType).toProperty("facilityType")
//                .map(image).toProperty("image")
//                .map(createId).toProperty("createId")
//                .map(modifyId).toProperty("modifyId")
//                .map(createTime).toProperty("createTime")
//                .map(modifyTime).toProperty("modifyTime")
//                .build()
//                .render(RenderingStrategy.MYBATIS3));
//    }
//
//    @Generated("org.mybatis.generator.api.MyBatisGenerator")
//    default int insertSelective(TbFacilityData record) {
//        return insert(SqlBuilder.insert(record)
//                .into(tbFacilityData)
//                .map(name).toPropertyWhenPresent("name", record::getName)
//                .map(organId).toPropertyWhenPresent("organId", record::getOrganId)
//                .map(address).toPropertyWhenPresent("address", record::getAddress)
//                .map(status).toPropertyWhenPresent("status", record::getStatus)
//                .map(acreage).toPropertyWhenPresent("acreage", record::getAcreage)
//                .map(population).toPropertyWhenPresent("population", record::getPopulation)
//                .map(counter).toPropertyWhenPresent("counter", record::getCounter)
//                .map(liabler).toPropertyWhenPresent("liabler", record::getLiabler)
//                .map(phone).toPropertyWhenPresent("phone", record::getPhone)
//                .map(terminal).toPropertyWhenPresent("terminal", record::getTerminal)
//                .map(rfid).toPropertyWhenPresent("rfid", record::getRfid)
//                .map(descs).toPropertyWhenPresent("descs", record::getDescs)
//                .map(beginTime).toPropertyWhenPresent("beginTime", record::getBeginTime)
//                .map(facilityType).toPropertyWhenPresent("facilityType", record::getFacilityType)
//                .map(image).toPropertyWhenPresent("image", record::getImage)
//                .map(createId).toPropertyWhenPresent("createId", record::getCreateId)
//                .map(modifyId).toPropertyWhenPresent("modifyId", record::getModifyId)
//                .map(createTime).toPropertyWhenPresent("createTime", record::getCreateTime)
//                .map(modifyTime).toPropertyWhenPresent("modifyTime", record::getModifyTime)
//                .build()
//                .render(RenderingStrategy.MYBATIS3));
//    }
//
//    @Generated("org.mybatis.generator.api.MyBatisGenerator")
//    default QueryExpressionDSL<MyBatis3SelectModelAdapter<List<TbFacilityData>>> selectByExample() {
//        return SelectDSL.selectWithMapper(this::selectMany, id, name, organId, address, status, acreage, population, counter, liabler, phone, terminal, rfid, descs, beginTime, facilityType, image, createId, modifyId, createTime, modifyTime)
//                .from(tbFacilityData);
//    }
//
//    @Generated("org.mybatis.generator.api.MyBatisGenerator")
//    default QueryExpressionDSL<MyBatis3SelectModelAdapter<List<TbFacilityData>>> selectDistinctByExample() {
//        return SelectDSL.selectDistinctWithMapper(this::selectMany, id, name, organId, address, status, acreage, population, counter, liabler, phone, terminal, rfid, descs, beginTime, facilityType, image, createId, modifyId, createTime, modifyTime)
//                .from(tbFacilityData);
//    }
//
//    @Generated("org.mybatis.generator.api.MyBatisGenerator")
//    default TbFacilityData selectByPrimaryKey(Long id_) {
//        return SelectDSL.selectWithMapper(this::selectOne, id, name, organId, address, status, acreage, population, counter, liabler, phone, terminal, rfid, descs, beginTime, facilityType, image, createId, modifyId, createTime, modifyTime)
//                .from(tbFacilityData)
//                .where(id, isEqualTo(id_))
//                .build()
//                .execute();
//    }
//
//    @Generated("org.mybatis.generator.api.MyBatisGenerator")
//    default UpdateDSL<MyBatis3UpdateModelAdapter<Integer>> updateByExample(TbFacilityData record) {
//        return UpdateDSL.updateWithMapper(this::update, tbFacilityData)
//                .set(name).equalTo(record::getName)
//                .set(organId).equalTo(record::getOrganId)
//                .set(address).equalTo(record::getAddress)
//                .set(status).equalTo(record::getStatus)
//                .set(acreage).equalTo(record::getAcreage)
//                .set(population).equalTo(record::getPopulation)
//                .set(counter).equalTo(record::getCounter)
//                .set(liabler).equalTo(record::getLiabler)
//                .set(phone).equalTo(record::getPhone)
//                .set(terminal).equalTo(record::getTerminal)
//                .set(rfid).equalTo(record::getRfid)
//                .set(descs).equalTo(record::getDescs)
//                .set(beginTime).equalTo(record::getBeginTime)
//                .set(facilityType).equalTo(record::getFacilityType)
//                .set(image).equalTo(record::getImage)
//                .set(createId).equalTo(record::getCreateId)
//                .set(modifyId).equalTo(record::getModifyId)
//                .set(createTime).equalTo(record::getCreateTime)
//                .set(modifyTime).equalTo(record::getModifyTime);
//    }
//
//    @Generated("org.mybatis.generator.api.MyBatisGenerator")
//    default UpdateDSL<MyBatis3UpdateModelAdapter<Integer>> updateByExampleSelective(TbFacilityData record) {
//        return UpdateDSL.updateWithMapper(this::update, tbFacilityData)
//                .set(name).equalToWhenPresent(record::getName)
//                .set(organId).equalToWhenPresent(record::getOrganId)
//                .set(address).equalToWhenPresent(record::getAddress)
//                .set(status).equalToWhenPresent(record::getStatus)
//                .set(acreage).equalToWhenPresent(record::getAcreage)
//                .set(population).equalToWhenPresent(record::getPopulation)
//                .set(counter).equalToWhenPresent(record::getCounter)
//                .set(liabler).equalToWhenPresent(record::getLiabler)
//                .set(phone).equalToWhenPresent(record::getPhone)
//                .set(terminal).equalToWhenPresent(record::getTerminal)
//                .set(rfid).equalToWhenPresent(record::getRfid)
//                .set(descs).equalToWhenPresent(record::getDescs)
//                .set(beginTime).equalToWhenPresent(record::getBeginTime)
//                .set(facilityType).equalToWhenPresent(record::getFacilityType)
//                .set(image).equalToWhenPresent(record::getImage)
//                .set(createId).equalToWhenPresent(record::getCreateId)
//                .set(modifyId).equalToWhenPresent(record::getModifyId)
//                .set(createTime).equalToWhenPresent(record::getCreateTime)
//                .set(modifyTime).equalToWhenPresent(record::getModifyTime);
//    }
//
//    @Generated("org.mybatis.generator.api.MyBatisGenerator")
//    default int updateByPrimaryKey(TbFacilityData record) {
//        return UpdateDSL.updateWithMapper(this::update, tbFacilityData)
//                .set(name).equalTo(record::getName)
//                .set(organId).equalTo(record::getOrganId)
//                .set(address).equalTo(record::getAddress)
//                .set(status).equalTo(record::getStatus)
//                .set(acreage).equalTo(record::getAcreage)
//                .set(population).equalTo(record::getPopulation)
//                .set(counter).equalTo(record::getCounter)
//                .set(liabler).equalTo(record::getLiabler)
//                .set(phone).equalTo(record::getPhone)
//                .set(terminal).equalTo(record::getTerminal)
//                .set(rfid).equalTo(record::getRfid)
//                .set(descs).equalTo(record::getDescs)
//                .set(beginTime).equalTo(record::getBeginTime)
//                .set(facilityType).equalTo(record::getFacilityType)
//                .set(image).equalTo(record::getImage)
//                .set(createId).equalTo(record::getCreateId)
//                .set(modifyId).equalTo(record::getModifyId)
//                .set(createTime).equalTo(record::getCreateTime)
//                .set(modifyTime).equalTo(record::getModifyTime)
//                .where(id, isEqualTo(record::getId))
//                .build()
//                .execute();
//    }
//
//    @Generated("org.mybatis.generator.api.MyBatisGenerator")
//    default int updateByPrimaryKeySelective(TbFacilityData record) {
//        return UpdateDSL.updateWithMapper(this::update, tbFacilityData)
//                .set(name).equalToWhenPresent(record::getName)
//                .set(organId).equalToWhenPresent(record::getOrganId)
//                .set(address).equalToWhenPresent(record::getAddress)
//                .set(status).equalToWhenPresent(record::getStatus)
//                .set(acreage).equalToWhenPresent(record::getAcreage)
//                .set(population).equalToWhenPresent(record::getPopulation)
//                .set(counter).equalToWhenPresent(record::getCounter)
//                .set(liabler).equalToWhenPresent(record::getLiabler)
//                .set(phone).equalToWhenPresent(record::getPhone)
//                .set(terminal).equalToWhenPresent(record::getTerminal)
//                .set(rfid).equalToWhenPresent(record::getRfid)
//                .set(descs).equalToWhenPresent(record::getDescs)
//                .set(beginTime).equalToWhenPresent(record::getBeginTime)
//                .set(facilityType).equalToWhenPresent(record::getFacilityType)
//                .set(image).equalToWhenPresent(record::getImage)
//                .set(createId).equalToWhenPresent(record::getCreateId)
//                .set(modifyId).equalToWhenPresent(record::getModifyId)
//                .set(createTime).equalToWhenPresent(record::getCreateTime)
//                .set(modifyTime).equalToWhenPresent(record::getModifyTime)
//                .where(id, isEqualTo(record::getId))
//                .build()
//                .execute();
//    }
//}